import request from '@/utils/request';

const URL = '/dataReplay';
// 测试接口
const API = {

    queryData (params?: any) {
        return request<any> ({
            url: `${URL}/queryData`,
            method: 'POST',
            data: params,
        })
    },

    queryDataWithOnline (params?: any) {
        return request<any> ({
            url: `${URL}/queryDataWithOnline`,
            method: 'POST',
            data: params,
        })
    },

    queryRJData (params?: any) {
        return request<any> ({
            url: '/datareplay/queryData',
            method: 'POST',
            data: params,
        })
    },

    queryMeasurementData (params?: any) {
        return request<any> ({
            url: '/datareplay/calculateMeasurement',
            method: 'POST',
            data: params,
        })
    },
}

export default API;
